package com.itheima.Thread08;

public class Demo {
    public static void main(String[] args) {
        MyThread th = new MyThread();
        MyThread01 th1 = new MyThread01();
        th.setName("女神");
        th1.setName("备胎");
        //设置备胎线程
        th1.setDaemon(true);
        th.start();
        th1.start();
    }
}
